package com.feng.vod.service;

import com.aliyuncs.exceptions.ClientException;
import com.feng.commonutils.R;
import org.springframework.stereotype.Repository;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

@Repository
public interface VodService {
    /**
     * 上传视频的方法
     * @param file
     * @return
     */
    R uploadAlyVideo(MultipartFile file) throws IOException;

    /**
     * 根据视频id删除video阿里视频
     * @param
     * @return
     */
    R deleteAkVideo(String id) throws ClientException;

    /**
     * 删除多个video阿里视频
     * @param videoIdList
     * @return
     */
    R deleteBatch(List<String> videoIdList);
}
